package com.lgh.demo.util;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;

/**
 * Created by oo on 2017/9/11.
 */

public class ActivityUtils {

    public static void gotoActivity(Context context, Class activityClass) {
        Intent intent = new Intent(context, activityClass);
        context.startActivity(intent);
    }

    public static void gotoActivityForResult(Activity activity, Class activityClass, int requestCode) {
        Intent intent = new Intent(activity, activityClass);
        activity.startActivityForResult(intent, requestCode);
    }

    public static void gotoActivityWithIntent(Context context, Intent intent) {
        context.startActivity(intent);
    }

}
